<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 5.4.2">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"mathieulin.gitee.io","root":"/","images":"/images","scheme":"Gemini","darkmode":true,"version":"8.12.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"manual","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="/js/config.js"></script>

    <meta name="description" content="安卓开发安装依赖项+各种配置">
<meta property="og:type" content="article">
<meta property="og:title" content="仿抖音项目开发遇到的问题">
<meta property="og:url" content="https://mathieulin.gitee.io/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/index.html">
<meta property="og:site_name" content="Mathieu&#39;s blog">
<meta property="og:description" content="安卓开发安装依赖项+各种配置">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://mathieulin.gitee.io/.io//img1.jpg">
<meta property="og:image" content="https://mathieulin.gitee.io/.io//img2.jpg">
<meta property="article:published_time" content="2022-05-30T16:00:00.000Z">
<meta property="article:modified_time" content="2022-07-30T09:41:19.109Z">
<meta property="article:author" content="Mathieu Lin">
<meta property="article:tag" content="配置">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://mathieulin.gitee.io/.io//img1.jpg">


<link rel="canonical" href="https://mathieulin.gitee.io/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://mathieulin.gitee.io/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/","path":"2022/05/31/java作业注意/","title":"仿抖音项目开发遇到的问题"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>仿抖音项目开发遇到的问题 | Mathieu's blog</title>
  




<link rel="dns-prefetch" href="https://blog-commeny-mh5e4d5jo-mathieulin.vercel.app">
  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
<link rel="alternate" href="/atom.xml" title="Mathieu's blog" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">Mathieu's blog</p>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">lzhow的debug路程</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li><li class="menu-item menu-item-schedule"><a href="/schedule/" rel="section"><i class="fa fa-calendar fa-fw"></i>日程表</a></li><li class="menu-item menu-item-sitemap"><a href="/sitemap.xml" rel="section"><i class="fa fa-sitemap fa-fw"></i>站点地图</a></li><li class="menu-item menu-item-commonweal"><a href="/404/" rel="section"><i class="fa fa-heartbeat fa-fw"></i>公益 404</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%BA%90%E7%A0%81%E9%9C%80%E8%A6%81%E6%94%B9%E5%8A%A8%E7%9A%84%E5%9C%B0%E6%96%B9%EF%BC%88%E8%87%AA%E5%B7%B1%E5%81%9A%E7%9A%84%E8%AF%9D%EF%BC%89"><span class="nav-number">1.</span> <span class="nav-text">源码需要改动的地方（自己做的话）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%86%85%E7%BD%91%E4%BA%92%E9%80%9A"><span class="nav-number">2.</span> <span class="nav-text">内网互通</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-%E5%85%B3%E9%97%AD%E6%9C%AC%E5%9C%B0%E9%98%B2%E7%81%AB%E5%A2%99"><span class="nav-number">2.1.</span> <span class="nav-text">1. 关闭本地防火墙</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-%E8%BF%9E%E6%8E%A5%E5%88%B0%E5%90%8C%E4%B8%80%E4%B8%AAWIFI"><span class="nav-number">2.2.</span> <span class="nav-text">2. 连接到同一个WIFI</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-%E6%9F%A5%E7%9C%8B%E6%9C%AC%E5%9C%B0IP"><span class="nav-number">2.3.</span> <span class="nav-text">3. 查看本地IP</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%89%8D%E7%AB%AF%E4%BB%A3%E7%A0%81%E8%BF%90%E8%A1%8C"><span class="nav-number">3.</span> <span class="nav-text">前端代码运行</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Ubuntu%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE"><span class="nav-number">4.</span> <span class="nav-text">Ubuntu基础配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#1-%E4%B8%AD%E6%96%87"><span class="nav-number">4.0.1.</span> <span class="nav-text">1.中文</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-%E9%95%9C%E5%83%8F%E6%BA%90"><span class="nav-number">4.0.2.</span> <span class="nav-text">2.镜像源</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-%E5%A4%8D%E5%88%B6%E7%B2%98%E8%B4%B4"><span class="nav-number">4.0.3.</span> <span class="nav-text">3.复制粘贴</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%BA%93%E4%BD%BF%E7%94%A8"><span class="nav-number">5.</span> <span class="nav-text">数据库使用</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%88%91%E5%BB%BA%E4%BA%86%E4%B8%AA%E4%BA%91%E6%95%B0%E6%8D%AE%E5%BA%93"><span class="nav-number">5.0.1.</span> <span class="nav-text">我建了个云数据库</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#MariaDB%E5%AE%89%E8%A3%85%EF%BC%88Ubuntu%EF%BC%89%E5%85%B6%E5%AE%9E%E7%94%A8MySQL%E5%B0%B1%E5%A5%BD%E4%BA%86"><span class="nav-number">6.</span> <span class="nav-text">MariaDB安装（Ubuntu）其实用MySQL就好了</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85yum"><span class="nav-number">6.0.1.</span> <span class="nav-text">安装yum</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#yum%E7%9A%84%E6%80%BB%E4%BD%93%E5%AE%89%E8%A3%85"><span class="nav-number">6.0.1.1.</span> <span class="nav-text">yum的总体安装</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E4%B8%8D%E5%87%BA%E6%84%8F%E5%A4%96%E5%BA%94%E8%AF%A5%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5"><span class="nav-number">6.0.1.2.</span> <span class="nav-text">不出意外应该安装失败</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E8%99%9A%E6%8B%9F%E6%9C%BA%E8%AE%BF%E9%97%AE%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9A%84%E9%97%AE%E9%A2%98"><span class="nav-number">6.0.1.3.</span> <span class="nav-text">虚拟机访问数据库的问题</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%BA%93%E5%B7%A5%E5%85%B7%E7%9A%84%E5%BC%95%E5%85%A5"><span class="nav-number">6.0.2.</span> <span class="nav-text">数据库工具的引入</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%AA%8C%E8%AF%81%E7%A0%81%E9%AA%8C%E8%AF%81"><span class="nav-number">7.</span> <span class="nav-text">验证码验证</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%85%BE%E8%AE%AF%E4%BA%91"><span class="nav-number">7.1.</span> <span class="nav-text">腾讯云</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Linux%E4%B8%8B%E5%AE%89%E8%A3%85Redis"><span class="nav-number">8.</span> <span class="nav-text">Linux下安装Redis</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Redis%E5%AE%89%E8%A3%85%E8%BF%90%E8%A1%8C"><span class="nav-number">8.0.1.</span> <span class="nav-text">Redis安装运行</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#RDM%E4%B8%8B%E8%BD%BD"><span class="nav-number">8.0.2.</span> <span class="nav-text">RDM下载</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#minio%E4%B8%8B%E8%BD%BD"><span class="nav-number">9.</span> <span class="nav-text">minio下载</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#MongoDB"><span class="nav-number">10.</span> <span class="nav-text">MongoDB</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#unicloud"><span class="nav-number">11.</span> <span class="nav-text">unicloud</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AF%8F%E6%AC%A1%E8%B0%83%E8%AF%95%E9%9C%80%E8%A6%81%E5%90%AF%E5%8A%A8%E7%9A%84%E6%9C%8D%E5%8A%A1"><span class="nav-number">12.</span> <span class="nav-text">每次调试需要启动的服务</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%98%BF%E9%87%8C%E4%BA%91%E5%8F%AF%E4%BB%A5%E8%AF%95%E7%94%A8%E4%B8%80%E4%B8%AA%E6%9C%88%E6%9C%8D%E5%8A%A1%E5%99%A8"><span class="nav-number">13.</span> <span class="nav-text">阿里云可以试用一个月服务器</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#MariaDB%E8%BF%9E%E6%8E%A5"><span class="nav-number">13.0.1.</span> <span class="nav-text">MariaDB连接</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#MongoDB-1"><span class="nav-number">13.1.</span> <span class="nav-text">MongoDB</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Redis"><span class="nav-number">13.1.1.</span> <span class="nav-text">Redis</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#MinIO"><span class="nav-number">13.1.2.</span> <span class="nav-text">MinIO</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%A1%B9%E7%9B%AE%E9%83%A8%E7%BD%B2"><span class="nav-number">13.1.3.</span> <span class="nav-text">项目部署</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B"><span class="nav-number">13.1.4.</span> <span class="nav-text">查看进程</span></a></li></ol></li></ol></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Mathieu Lin</p>
  <div class="site-description" itemprop="description">这是一个记载了lzhow传奇的一生的博客</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">14</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
        <span class="site-state-item-count">8</span>
        <span class="site-state-item-name">分类</span>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">9</span>
        <span class="site-state-item-name">标签</span>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/mathieulin" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;mathieulin" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:19241032@buaa.edu.cn" title="E-Mail → mailto:19241032@buaa.edu.cn" rel="noopener" target="_blank"><i class="fab fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://121.199.35.110/" title="Todo → http:&#x2F;&#x2F;121.199.35.110&#x2F;" rel="noopener" target="_blank">Todo</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://noietch.cn:88/" title="House → http:&#x2F;&#x2F;noietch.cn:88&#x2F;" rel="noopener" target="_blank">House</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-05d97c93-6101-4c53-8659-f5cf79396b93/0cdfad7c-f758-49ca-becf-6483b8fe95d5.apk" title="Douzero → https:&#x2F;&#x2F;vkceyugu.cdn.bspapp.com&#x2F;VKCEYUGU-05d97c93-6101-4c53-8659-f5cf79396b93&#x2F;0cdfad7c-f758-49ca-becf-6483b8fe95d5.apk" rel="noopener" target="_blank">Douzero</a>
      </span>
      <span class="links-of-author-item">
        <a href="/atom.xml" title="rss → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i>rss</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://mathieulin.github.io/myblog" title="Another-blog → https:&#x2F;&#x2F;mathieulin.github.io&#x2F;myblog" rel="noopener" target="_blank">Another-blog</a>
      </span>
  </div>



        </div>
      </div>
    </div>
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1951671851&auto=1&height=66"></iframe>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://mathieulin.gitee.io/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Mathieu Lin">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Mathieu's blog">
      <meta itemprop="description" content="这是一个记载了lzhow传奇的一生的博客">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="仿抖音项目开发遇到的问题 | Mathieu's blog">
      <meta itemprop="description" content="安卓开发安装依赖项+各种配置">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          仿抖音项目开发遇到的问题
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2022-05-31 00:00:00" itemprop="dateCreated datePublished" datetime="2022-05-31T00:00:00+08:00">2022-05-31</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2022-07-30 17:41:19" itemprop="dateModified" datetime="2022-07-30T17:41:19+08:00">2022-07-30</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/java%E9%A1%B9%E7%9B%AE/" itemprop="url" rel="index"><span itemprop="name">java项目</span></a>
        </span>
    </span>

  
  
  <span class="post-meta-item">
    
    <span class="post-meta-item-icon">
      <i class="far fa-comment"></i>
    </span>
    <span class="post-meta-item-text">评论数：</span>
  
    <a title="waline" href="/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/#waline" itemprop="discussionUrl">
      <span class="post-comments-count waline-comment-count" data-path="/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/" itemprop="commentCount"></span>
    </a>
  </span>
  
  
</div>

            <div class="post-description">安卓开发安装依赖项+各种配置</div>
        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h2 id="源码需要改动的地方（自己做的话）"><a href="#源码需要改动的地方（自己做的话）" class="headerlink" title="源码需要改动的地方（自己做的话）"></a>源码需要改动的地方（自己做的话）</h2><p>tencentcloud.propeties的信息</p>
<p>SMSUtils.java</p>
<p>application-dev.yml</p>
<p>application-prod.yml里的各种</p>
<h2 id="内网互通"><a href="#内网互通" class="headerlink" title="内网互通"></a>内网互通</h2><h3 id="1-关闭本地防火墙"><a href="#1-关闭本地防火墙" class="headerlink" title="1. 关闭本地防火墙"></a>1. 关闭本地防火墙</h3><h3 id="2-连接到同一个WIFI"><a href="#2-连接到同一个WIFI" class="headerlink" title="2. 连接到同一个WIFI"></a>2. 连接到同一个WIFI</h3><h3 id="3-查看本地IP"><a href="#3-查看本地IP" class="headerlink" title="3. 查看本地IP"></a>3. 查看本地IP</h3><p>cmd命令行输入ipconfig</p>
<p><img src="/.io//img1.jpg"></p>
<p>192.168.10.10</p>
<p>把application-dev.yml中的端口号改改，再把数据库改改</p>
<h2 id="前端代码运行"><a href="#前端代码运行" class="headerlink" title="前端代码运行"></a>前端代码运行</h2><p>将App.vue中的serverUrl改成本机IP</p>
<p><img src="/.io//img2.jpg"></p>
<p>连接模拟器</p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/f01efc0e4609">HBuilderX连接安卓模拟器 - 简书 (jianshu.com)</a></p>
<h2 id="Ubuntu基础配置"><a href="#Ubuntu基础配置" class="headerlink" title="Ubuntu基础配置"></a>Ubuntu基础配置</h2><p>VMWare安装，Ubuntu下载网上教程很全面了</p>
<p>安装后：</p>
<h4 id="1-中文"><a href="#1-中文" class="headerlink" title="1.中文"></a>1.中文</h4><p>右上角settings-&gt;Region&amp;Language-&gt; managed install language -&gt; install language -&gt; chineses simplify-&gt;</p>
<p>Region formats 改为汉语 -&gt;apply-&gt;重启-&gt;settings-&gt;’+’-&gt;中文-&gt;language-&gt;汉语-&gt;restart</p>
<h4 id="2-镜像源"><a href="#2-镜像源" class="headerlink" title="2.镜像源"></a>2.镜像源</h4><p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/421178143">Ubuntu 20.04换国内源 清华源 阿里源 中科大源 163源 - 知乎 (zhihu.com)</a></p>
<h4 id="3-复制粘贴"><a href="#3-复制粘贴" class="headerlink" title="3.复制粘贴"></a>3.复制粘贴</h4><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/thy0000/article/details/122638884?ops_request_misc=%7B%22request_id%22:%22165374071316782248582850%22,%22scm%22:%2220140713.130102334..%22%7D&request_id=165374071316782248582850&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-122638884-null-null.142%5Ev11%5Epc_search_result_control_group,157%5Ev12%5Econtrol&utm_term=%E5%AE%89%E8%A3%85vmware+tools&spm=1018.2226.3001.4187">(99条消息) VMware Tools安装步骤（windows10）_萝北村的枫子的博客-CSDN博客_vmtools安装</a></p>
<p>[(99条消息) VMware虚拟机的安装VMware Tools是灰色无法点击的解决方法_BluePROT的博客-CSDN博客_vm虚拟机安装tools是灰色](<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_41037945/article/details/104173550?ops_request_misc=&request_id=&biz_id=102&utm_term=%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85vmware">https://blog.csdn.net/qq_41037945/article/details/104173550?ops_request_misc=&amp;request_id=&amp;biz_id=102&amp;utm_term=重新安装vmware</a> tools无法点击&amp;utm_medium&#x3D;distribute.pc_search_result.none-task-blog-2<del>all</del>sobaiduweb~default-1-104173550.142^v11^pc_search_result_control_group,157^v12^control&amp;spm&#x3D;1018.2226.3001.4187)</p>
<h2 id="数据库使用"><a href="#数据库使用" class="headerlink" title="数据库使用"></a>数据库使用</h2><p>数据库数据的导出</p>
<p>在MySql的bin目录下执行</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">D:</span><br><span class="line">cd D:\mysql-8.0.28-winx64\bin</span><br><span class="line"></span><br><span class="line">mysqldump -uroot -p password imooc&gt;C:\Users\15128\Desktop\大二下作业\java\java-homework\my-version\imooc-red-book-dev-chapter9-finished\imooc.sql</span><br></pre></td></tr></table></figure>



<h4 id="我建了个云数据库"><a href="#我建了个云数据库" class="headerlink" title="我建了个云数据库"></a>我建了个云数据库</h4><p>rm-bp12ec5b1y4n87tjtoo.mysql.rds.aliyuncs.com:3306</p>
<p>user:root</p>
<p>password:马赛克</p>
<p>database:imooc</p>
<h2 id="MariaDB安装（Ubuntu）其实用MySQL就好了"><a href="#MariaDB安装（Ubuntu）其实用MySQL就好了" class="headerlink" title="MariaDB安装（Ubuntu）其实用MySQL就好了"></a>MariaDB安装（Ubuntu）其实用MySQL就好了</h2><p>[(100条消息) 如何在Ubuntu上安装MariaDB_cunchi4221的博客-CSDN博客](<a target="_blank" rel="noopener" href="https://blog.csdn.net/cunchi4221/article/details/107471755?ops_request_misc=&request_id=&biz_id=102&utm_term=ubuntu">https://blog.csdn.net/cunchi4221/article/details/107471755?ops_request_misc=&amp;request_id=&amp;biz_id=102&amp;utm_term=ubuntu</a> mariadb&amp;utm_medium&#x3D;distribute.pc_search_result.none-task-blog-2<del>all</del>sobaiduweb~default-1-107471755.142^v11^pc_search_result_control_group,157^v12^control&amp;spm&#x3D;1018.2226.3001.4187)</p>
<p>service mysql start</p>
<p>mysql_secure_installation</p>
<p>允许远程登陆选Y</p>
<p>mysql -u root -p</p>
<p>grant all privileges on <em>.</em> to ‘root‘@’%’ identified by ‘密码’;</p>
<p>flush privileges;</p>
<p>netstat -anp | grep 3306 &#x2F;&#x2F; 开启端口</p>
<p>lsof -i:3306 发现只有127.0.0.1能连</p>
<p>grep -rn “skip-networking” * 找文件（我这里是&#x2F;etc&#x2F;mysql&#x2F;mariadb.conf.d&#x2F;50-server.cnf），然后把其中的bind_address: 127.0.0.1注释掉即可</p>
<p>service mysql restart</p>
<h4 id="安装yum"><a href="#安装yum" class="headerlink" title="安装yum"></a>安装yum</h4><h5 id="yum的总体安装"><a href="#yum的总体安装" class="headerlink" title="yum的总体安装"></a>yum的总体安装</h5><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_38690917/article/details/115261819">https://blog.csdn.net/qq_38690917/article/details/115261819</a></p>
<h5 id="不出意外应该安装失败"><a href="#不出意外应该安装失败" class="headerlink" title="不出意外应该安装失败"></a>不出意外应该安装失败</h5><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/pingyan158/article/details/121992571">https://blog.csdn.net/pingyan158/article/details/121992571</a></p>
<h5 id="虚拟机访问数据库的问题"><a href="#虚拟机访问数据库的问题" class="headerlink" title="虚拟机访问数据库的问题"></a>虚拟机访问数据库的问题</h5><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Gaozier/article/details/115515440">https://blog.csdn.net/Gaozier/article/details/115515440</a></p>
<h4 id="数据库工具的引入"><a href="#数据库工具的引入" class="headerlink" title="数据库工具的引入"></a>数据库工具的引入</h4><p>更改generatorConfig.xml中的配置</p>
<p>application-yml中的spring配置项下的数据源</p>
<h2 id="验证码验证"><a href="#验证码验证" class="headerlink" title="验证码验证"></a>验证码验证</h2><p>直接调用接口</p>
<p><a target="_blank" rel="noopener" href="http://192.168.10.10:8099/sms">192.168.10.10:8099&#x2F;sms</a></p>
<h3 id="腾讯云"><a href="#腾讯云" class="headerlink" title="腾讯云"></a>腾讯云</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">tencent.cloud.secretId=AKIDQjoeFcWBdw3wZx73lGbrtgEXcS5TcXDe</span><br><span class="line">tencent.cloud.secretKey=d2C8qMgojQwEII4ez6yb0B8sQkfV8Yls</span><br></pre></td></tr></table></figure>



<h2 id="Linux下安装Redis"><a href="#Linux下安装Redis" class="headerlink" title="Linux下安装Redis"></a>Linux下安装Redis</h2><h4 id="Redis安装运行"><a href="#Redis安装运行" class="headerlink" title="Redis安装运行"></a>Redis安装运行</h4><p>按上面的tools操作后可以直接拖动进来，就不需要连接SecureCRT</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_39135287/article/details/83474865">https://blog.csdn.net/qq_39135287/article/details/83474865</a></p>
<figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo -s</span><br><span class="line"><span class="built_in">cd</span> /usr/local/redis-<span class="number">7</span>.<span class="number">0</span>.<span class="number">0</span>/bin</span><br><span class="line">./redis-server /usr/local/redis-<span class="number">7</span>.<span class="number">0</span>.<span class="number">0</span>/etc/redis.conf</span><br></pre></td></tr></table></figure>

<p>一定要关闭本地防火墙</p>
<p>然后虚拟机改成桥接模式（括号里也打勾）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ping 192.168.10.10</span><br></pre></td></tr></table></figure>

<p>ping一下主机ip看看能不能连上</p>
<p>虚拟机ip 192.168.10.14不知道会不会变，redis端口号为6379</p>
<h4 id="RDM下载"><a href="#RDM下载" class="headerlink" title="RDM下载"></a>RDM下载</h4><p>见云盘</p>
<h2 id="minio下载"><a href="#minio下载" class="headerlink" title="minio下载"></a>minio下载</h2><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_45579930/article/details/107172781?ops_request_misc=%7B%22request_id%22:%22165379292716782425142258%22,%22scm%22:%2220140713.130102334..%22%7D&request_id=165379292716782425142258&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-3-107172781-null-null.142%5Ev11%5Epc_search_result_control_group,157%5Ev12%5Econtrol&utm_term=windows%E5%AE%89%E8%A3%85minio&spm=1018.2226.3001.4187">(99条消息) Windows中Minio的安装和使用_Viviana-0的博客-CSDN博客_windows安装minio</a></p>
<p>下载到了D盘</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.\minio.exe server E:\minio</span><br></pre></td></tr></table></figure>

<p>控制台 <a target="_blank" rel="noopener" href="http://192.168.10.10:9000/">http://192.168.10.10:9000</a></p>
<p>账号密码为minioadmin</p>
<p>linux下</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">wget https://dl.min.io/server/minio/release/linux-amd64/minio</span><br><span class="line"><span class="built_in">chmod</span> +x minio</span><br><span class="line">./minio server /data</span><br><span class="line"></span><br><span class="line">vim start-minio.sh</span><br></pre></td></tr></table></figure>



<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">export</span> MINIO_ACCESS_KEY=root</span><br><span class="line"><span class="built_in">export</span> MINIO_SECRET_KEY=lzh2234567</span><br><span class="line"><span class="comment"># ./minio server /usr/local/minio/data &gt; /usr/local/minio/minio.log 2&gt;&amp;1 &amp;</span></span><br><span class="line">./minio server --console-address 0.0.0.0:9111 /usr/local/minio/data &gt; /usr/local/minio/minio.log 2&gt;&amp;1 &amp;</span><br></pre></td></tr></table></figure>



<p>.&#x2F;start-minio.sh</p>
<h2 id="MongoDB"><a href="#MongoDB" class="headerlink" title="MongoDB"></a>MongoDB</h2><p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/TM0831/p/10606624.html">最详细的Windows平台安装MongoDB教程 - TM0831 - 博客园 (cnblogs.com)</a></p>
<p>命令行执行</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mongod --dbpath E:\MongoDB\data\db</span><br></pre></td></tr></table></figure>

<p>127.0.0.1:27017</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mongod --dbpath &quot;E:\MongoDB\data\db&quot; --logpath &quot;E:\MongoDB\data\log\mongo.log&quot; -install -serviceName &quot;MongoDB&quot;</span><br></pre></td></tr></table></figure>



<h2 id="unicloud"><a href="#unicloud" class="headerlink" title="unicloud"></a>unicloud</h2><p>好像用了这个就不需要民minio了呢？这样就可以少启用少部署一个服务了挺好的</p>
<h2 id="每次调试需要启动的服务"><a href="#每次调试需要启动的服务" class="headerlink" title="每次调试需要启动的服务"></a>每次调试需要启动的服务</h2><ul>
<li><p>本地MySQL（开机自启） &#x2F;&#x2F; 现在已使用云数据库，不需要了已经</p>
<ul>
<li><pre><code class="plain">rm-bp12ec5b1y4n87tjtoo.mysql.rds.aliyuncs.com:3306
root
马赛克
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">+ 模拟器</span><br><span class="line"></span><br><span class="line">+ HBuilder项目</span><br><span class="line"></span><br><span class="line">+ 虚拟机开启Redis服务 //云的太贵了，算咯</span><br><span class="line"></span><br><span class="line">  ```cmd</span><br><span class="line">  sudo -s</span><br><span class="line">  cd /usr/local/redis-7.0.0/bin</span><br><span class="line">  ./redis-server /usr/local/redis-7.0.0/etc/redis.conf</span><br></pre></td></tr></table></figure>
</code></pre>
</li>
</ul>
</li>
<li><p>MinIO</p>
<p>在java项目目录下（其实有了unicloud就不需要minio咯）</p>
</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.\minio.exe server E:\minio</span><br></pre></td></tr></table></figure>

<ul>
<li><p>MongoDB</p>
<p>这里我设置了开机自启</p>
</li>
</ul>
<h2 id="阿里云可以试用一个月服务器"><a href="#阿里云可以试用一个月服务器" class="headerlink" title="阿里云可以试用一个月服务器"></a>阿里云可以试用一个月服务器</h2><p>实例密码</p>
<p>马赛克</p>
<p>远程连接密码</p>
<p>马赛克</p>
<p>安全组配置-》配置端口号</p>
<p>马赛克</p>
<h4 id="MariaDB连接"><a href="#MariaDB连接" class="headerlink" title="MariaDB连接"></a>MariaDB连接</h4><p>netstat -apn |grep 3306查看MariaDB运行状态</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/pythonyzh2019/article/details/108951629">(101条消息) 为 MariaDB 配置远程访问权限_Y.zh的博客-CSDN博客_mariadb远程访问权限</a></p>
<p>121.199.35.110:3306</p>
<p>root</p>
<p>马赛克</p>
<h3 id="MongoDB-1"><a href="#MongoDB-1" class="headerlink" title="MongoDB"></a>MongoDB</h3><p>121.199.35.110:27017</p>
<p>root</p>
<p>马赛克</p>
<h4 id="Redis"><a href="#Redis" class="headerlink" title="Redis"></a>Redis</h4><p>cd &#x2F;usr&#x2F;local&#x2F;redis&#x2F;bin</p>
<p>.&#x2F;redis-server redis.conf</p>
<p>121.199.35.110:6379</p>
<p>马赛克</p>
<h4 id="MinIO"><a href="#MinIO" class="headerlink" title="MinIO"></a>MinIO</h4><p>121.199.35.110:9111</p>
<p>root</p>
<p>马赛克</p>
<h4 id="项目部署"><a href="#项目部署" class="headerlink" title="项目部署"></a>项目部署</h4><p>cd &#x2F;home</p>
<p>nohup java -jar imooc.jar &gt;my.log 2&gt;&amp;1 &amp;</p>
<h4 id="查看进程"><a href="#查看进程" class="headerlink" title="查看进程"></a>查看进程</h4><p>ps -ef|grep imooc</p>
<p>lsof -i:8099</p>

    </div>

    
    
    

    <footer class="post-footer"><script src="//sdk.jinrishici.com/v2/browser/jinrishici.js"></script>
<script>
  jinrishici.load((result) => {
    let jrsc = document.getElementById('jrsc');
    const data = result.data;
    let author = data.origin.author;
    let title = '《' + data.origin.title + '》';
    let content = data.content.substr(0, data.content.length - 1);
    let dynasty = data.origin.dynasty.substr(0, data.origin.dynasty.length - 1);
    jrsc.innerText = content + ' @ ' + dynasty + '·' + author + title;
  });
</script>
<div style="text-align: center"><span id="jrsc" >正在加载今日诗词....</span></div>

          <div class="post-tags">
              <a href="/tags/%E9%85%8D%E7%BD%AE/" rel="tag"># 配置</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2022/05/06/CTS4/" rel="prev" title="CTS4">
                  <i class="fa fa-chevron-left"></i> CTS4
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2022/05/31/TodoList/" rel="next" title="TodoList">
                  TodoList <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    <div class="comments" id="waline"></div>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Mathieu Lin</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div><script color="0,0,255" opacity="0.5" zIndex="-1" count="99" src="https://cdnjs.sourcegcdn.com//ajax/libs/canvas-nest.js/1.0.1/canvas-nest.js"></script>

    </div>
  </footer>

  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/next-theme-pjax/0.5.0/pjax.min.js" integrity="sha256-3NkoLDrmHLTYj7csHIZSr0MHAFTXth7Ua/DDt4MRUAg=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script><script src="/js/pjax.js"></script>

  
<script src="https://cdnjs.cloudflare.com/ajax/libs/hexo-generator-searchdb/1.4.0/search.js" integrity="sha256-vXZMYLEqsROAXkEw93GGIvaB2ab+QW6w3+1ahD9nXXA=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>





  




<script class="next-config" data-name="waline" type="application/json">{"lang":"zh-CN","enable":true,"serverURL":"https://blog-commeny-mh5e4d5jo-mathieulin.vercel.app","cssUrl":"https://unpkg.com/@waline/client@v2/dist/waline.css","commentCount":true,"pageview":false,"el":"#waline","comment":true,"libUrl":"//unpkg.com/@waline/client@v2/dist/waline.js","path":"/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/"}</script>
<link rel="stylesheet" href="https://unpkg.com/@waline/client@v2/dist/waline.css">
<script>
document.addEventListener('page:loaded', () => {
  NexT.utils.loadComments(CONFIG.waline.el).then(() =>
    NexT.utils.getScript(CONFIG.waline.libUrl, { condition: window.Waline })
  ).then(() => 
    Waline.init(Object.assign({}, CONFIG.waline,{ el: document.querySelector(CONFIG.waline.el) }))
  );
});
</script>

</body>
</html>

<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/clicklove.js"></script>
